import CodeBlock from '@theme/CodeBlock';
import source from '!!raw-loader!./working-with-CMS-password-based-encryption.example';

# Working with CMS password-based Encryption

In this example, you will see how to create and decrypt a pre-shared key encrypted CMS message. 

<CodeBlock language="ts">
  {source}
</CodeBlock>
